#include "qelib.h"
#include "libfdt.h"
#include "dtb_blob_data.h"
#include "project_config.h"



static qe_init int early_init(void)
{
    int ret = fdt_check_header(dtb_get_blob_data());
    qe_assert(ret == 0);

	/* Earlycon init */
    qe_earlycon_init(dtb_get_blob_data());

    /* Version Print */
    qe_printf("\r\n\r\n");
    qe_printf("%s\r\n", PROJECT_NAME);
    qe_printf("%s\r\n", PROJECT_VERSION);
    qe_printf("build %s %s\r\n", __DATE__, __TIME__);

    qe_dm_scan(dtb_get_blob_data());

    return 0;
}
QE_EARLY_EXPORT(early_init);
